home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / 422mods.zip / SYSVAL.422 < prev    next >
Text File  |  1993-02-23  |  4KB  |  128 lines

  1. Auto Sysop Validation for WWIV v4.22 . . .
  2. Dr. Dre #1 @1 7-=1Top Administrator7=-0
  3. Mon Feb 22 07:00:36 1993
  4. ┌────────────────────────────────────────────────────────────────────────────┐
  5. │ Mod Name:       Filo03.Mod              Mod Author:  Filo                  │
  6. │ Difficulty:     Outright Simple         Date:        12-17-1992            │
  7. │ WWIV Version:   4.22                                                       │
  8. │ Description:    Adds Auto-Sysop Validation to v4.22 and places the Board   │
  9. │                 Name and Number in the User's Note.                        │
  10. └────────────────────────────────────────────────────────────────────────────┘
  11.  
  12. Files affected:  Newuser.c, Lilo.C
  13.  
  14. STEP ONE:
  15.  
  16. In void getuser in LILO.C , search for the following:
  17.  
  18.     } else
  19.       if (usernum==-1) {
  20.         newuser();
  21.         ok=1;
  22.         if (thisuser.ar==12)     /* add this line */
  23.            actsl=60;             /* add this line */
  24.       } else                     /* Existing Code */
  25.  
  26. Explanation:  Although the mod gives user (default unless changed)
  27. an SL and DSL of 60, the new version of WWIV does not recognize it until
  28. a second logon; thus, the additional code added to LILO.C gives an
  29. acting SL of 60 to user's who have AR of C and D set.  Those are the
  30. defaults from the AUTOVAL mod by MrBill.  If you have changed those in
  31. the autoval mod, then you put the same number here.  Save this change.
  32.  
  33. STEP TWO:
  34.  
  35. Add the line shown below to the top of NEWUSER.C as shown:
  36.  
  37. #include "vars.h"         /* Existing Code */
  38.  
  39. #pragma hdrstop           /* Existing Code */
  40.  
  41. #define FILO3B 1500       /* define string value for start of Filo03B */
  42.                           /* see comment below */
  43. int check_name(char *nn)  /* Existing Code */
  44.  
  45. COMMENT: I chose to add 1000+ strings to those that were provided
  46. with v4.22.  Since Wayne had 932 strings in the code, I started my
  47. modding at string 1500.  In the define above, please feel free to
  48. handle yours differently.  This mod only uses two strings but the
  49. relative numbering feature is used here and it does work well.
  50.  
  51.  
  52. STEP THREE:
  53.  
  54. In void Newuser in NEWUSER.C, you will find the following
  55. (existing and added code shown):
  56. /*  this is existing code to help you locate position of mod  */
  57.     prt(5,get_string(569));
  58.     if (yn()) {
  59.       nl();
  60.       pl(get_string(570));
  61.       nl();
  62.       i=get_protocol(xf_down);
  63.       if (i)
  64.         thisuser.defprot=i;
  65.     }
  66.     nl();
  67.     outstr(get_string(571)); pl(thisuser.pw);
  68.     nl();
  69.     prt(5,get_string(572));
  70.     if (yn())
  71.       input_pw();
  72.    /*  everything above is existing code in v4.22 */
  73.    /* added this section for Filo03B the Auto-Validation Mod */
  74.     nl();
  75.     prt(5,get_string(FILO3B));
  76.     if (yn()){
  77.        nl();
  78.        prt(5,get_string(FILO3B+1));
  79.        nl();
  80.        inputl(thisuser.note,40);
  81.        thisuser.sl=60;
  82.        thisuser.dsl=60;
  83.        thisuser.exempt=1;
  84.        thisuser.restrict=0;
  85.        thisuser.ar=12;
  86.        thisuser.dar=12;
  87.        nl();
  88.        printfile("AV-WARN");
  89.        nl();
  90.        pausescr();
  91.      }
  92.    /* End of FILO03B addition.  Remaining two lines are existing code */   
  93.   }
  94.  
  95.   if (!hangup) 
  96.  
  97. STEP FOUR:
  98.  
  99.   Save NEWUSER.C and recompile.
  100.  
  101. STEP FIVE:
  102.  
  103.   Create a file in GFILES directory called AV-WARN. Mine is shown below,
  104. but you should feel free to make your own. The BBS will recognize any
  105. of AV-WARN.MSG, AV-WARN.ANS, and/or AV-WARN.B&W.
  106.  
  107.  
  108.                     Important  Announcement
  109.        ╔══════════════════════════════════════════════════════╗
  110.        ║ You have just been validated as a visiting sysop.    ║
  111.        ║ This status gives you immediate access to certain    ║
  112.        ║ files and message bases.  If you selected this       ║
  113.        ║ status by mistake, please tell Filo in your Feedback ║
  114.        ║ Letter.  If I find that you are NOT a sysop and that ║
  115.        ║ you did not correct your error, I will delete you    ║
  116.        ║ from this Bulletin Board and tell other Sysops about ║
  117.        ║ your attempt to gain access under false pretenses.   ║
  118.        ╚══════════════════════════════════════════════════════╝
  119.  
  120. STEP SIX:
  121.  
  122. Add the following two strings to the BBS.STR file or to whatever
  123. file you are using for modded strings.
  124.  
  125. Are you currently a WWIV SysOp?
  126. Please enter your BBS name and number.
  127.  
  128.